package com.brush.common.core.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 接收用户登录对象模型
 * @author: admin
 */
@ApiModel(value = "AdminLoginReq",description = "用户登录对象模型")
@Getter
@Setter
public class AdminLoginReq {
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "{notBlank.username}")
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", required = true)
    @NotBlank(message = "{notBlank.password}")
    private String password;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "{notBlank.code}")
    private String code;

    /**
     * 唯一标识
     */
    @ApiModelProperty(value = "唯一标识", required = true)
    @NotBlank(message = "{notBlank.uuid}")
    private String uuid;

    /**
     * 记住密码
     */
    @ApiModelProperty(value = "记住密码")
    private Boolean rememberMe;
}
